Parser.parse

Use the parser to parse some source code stored in one contiguous buffer with a given encoding. The first four parameters work the same as in the ts_parser_parse_string method above. The final parameter indicates whether the text is encoded as UTF8 or UTF16.

  1. auto parse(TSInput input, TSTree* old_tree)
  2. auto parse(string source_code, TSTree* old_tree)
  3. auto parse(string source_code, TSInputEncoding encoding, TSTree* old_tree)
    struct Parser
    nothrow
    parse
    (
    const string source_code
    ,
    const TSInputEncoding encoding
    ,
    const TSTree* old_tree = Tree.create_empty()
    )

Meta